<!DOCTYPE html>
<html lang="en">

<head>
    <title>用户管理</title>
    <!--=include _head.html  -->
    <script src="./js/page/user.js"></script>
</head>
<!-- 
    用户管理
    功能：筛选(部门、岗位等其它基本信息)、操作（锁定、授权、重置密码、修改基础信息等）

 -->

<body class="fa-layout">
    <div class="layui-fluid">
        <div class="layui-row layui-col-space15">
            <form>

            </form>
        </div>
        <div class="layui-row layui-col-space15">
            <div class="layui-col-md12">
                <div class="layui-card">
                    <div class="layui-card-body">
                        <table id="data" lay-filter="data"></table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>
<script type="text/html" id="toolbarDemo">
    <div class="layui-btn-group">
        <button type="button" class="layui-btn layui-btn-sm" lay-event="add">
            <i class="layui-icon layui-icon-add-1"></i>
        </button>
        <button type="button" class="layui-btn layui-btn-sm" lay-event="moveDept">
            <i class="layui-icon layui-icon-transfer"></i>
        </button>
        <button type="button" class="layui-btn layui-btn-sm layui-btn-danger" lay-event="delAll">
            <i class="layui-icon layui-icon-delete"></i>
        </button>
    </div>
</script>
<script type="text/html" id="sexTml">
    <!-- 这里的checked的状态只是演示 -->
    {{d.sex=="N"?"未知":(d.sex=="F"?"男":"女")}}
</script>
<script type="text/html" id="statusTpl">
    <!-- 这里的checked的状态只是演示 -->
<input type="checkbox" name="status" value="{{d.userId}}" lay-skin="switch" lay-text="启用|停用"
    {{d.status==0?"checked":""}} lay-filter="status" disabled>
</script>
<script type="text/html" id="barTpl">
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="detail">查看</a>
    <a class="layui-btn layui-btn-warm layui-btn-xs " lay-event="on-off">{{d.status==0?"停用":"启用"}}</a>
    <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="resetPassword">重置密码</a>
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="auth">授权角色</a>
</script>

</html>